package cn.hust.springboot.mapper;

import cn.hust.springboot.bean.Contract;
import cn.hust.springboot.bean.ContractExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ContractMapper {
    long countByExample(ContractExample example);

    int deleteByExample(ContractExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Contract row);

    int insertSelective(Contract row);

    List<Contract> selectByExample(ContractExample example);

    Contract selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("row") Contract row, @Param("example") ContractExample example);

    int updateByExample(@Param("row") Contract row, @Param("example") ContractExample example);

    int updateByPrimaryKeySelective(Contract row);

    int updateByPrimaryKey(Contract row);

    List<Contract> getContractAndEmp();

    List<Contract> query(String name);
}